package com.education.welco.feign;

import com.education.auth.entity.BusinessDiaryVo;
import com.education.common.pojo.SysUserOther;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-service")
public interface DiaryFeifn {

    /**
     * 根据用户手机号查询用户信息
     * @param userPhone
     * @return
     */
    @GetMapping("/k12main/sysUser/queryUserByUserPhone")
    SysUserOther queryUserByUserPhone(@RequestParam("userPhone") String userPhone);

    /**
     * 日志操作新增
     * @param businessDiaryVo
     * @return
     */
    @PostMapping("/businessDiary/diaryAdd")
    int diaryAdd(@RequestBody BusinessDiaryVo businessDiaryVo);
}
